package com.javase.string.demo07;

public class StringTest {

	public static void main(String[] args) {
		String str = "nihaojava";
		
		char charAt0 = str.charAt(0);
		char charAt1 = str.charAt(1);
		char charAt2 = str.charAt(2);
		char charAt3 = str.charAt(3);
		char charAt4 = str.charAt(4);
		char charAt5 = str.charAt(5);
		char charAt6 = str.charAt(6);
		char charAt7 = str.charAt(7);
		char charAt8 = str.charAt(8);
		
		for(int i=0;i<str.length();i++) {
			System.out.println(str.charAt(i));
		}


	}

}
